const isDevelopment = process.env.NODE_ENV === 'development'

const logger = {
  debug: (...args) => {
    if (isDevelopment) {
      console.debug('[Debug]', ...args)
    }
  },
  
  info: (...args) => {
    if (isDevelopment) {
      console.info('[Info]', ...args)
    }
  },
  
  warn: (...args) => {
    console.warn('[Warn]', ...args)
  },
  
  error: (...args) => {
    console.error('[Error]', ...args)
    // 在这里可以添加错误上报逻辑
  }
}

export default logger 